home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
023a
/
prop_man.zip
/
OLDTRANS.SAB
< prev
next >
Wrap
Text File
|
1991-09-13
|
2KB
|
39 lines
enter oldtrans for 1 row
set v cod to ""
set v lnam to l.name in oldtrans where add.code exists
set v cod to add.code in oldtrans where add.code exists
if cod = "exit" or cod = "" then ; goto ex ; endif
set v rentpd to rent.pd in oldtrans whe add.code exi
set v pastpd to past.pd in oldtrans whe add.code exi
set v waterpd to wat.paid in oldtrans whe add.code exi
set v otherpd to other.pd in oldtrans whe add.code exi
set v secpd to sec.pd in oldtrans whe add.code exi
set v waterch to water.ch in oldtrans whe add.code exi
set v otherch to other.ch in oldtrans whe add.code exi
set v lastamt to tot.pd in oldtrans whe add.code exi
set mes on
cha last.amt to .lastamt in old.mast whe add.code = .cod and l.name = .lnam
set mes off
cha date to .#date in oldtrans whe add.code exists
cha activity to .#date in old.mast whe add.code = .cod and l.name = .lnam
cha bal.rent to (bal.rent - .rentpd) in old.mast whe add.code = .cod +
and l.name = .lnam
cha past.due to (past.due - .pastpd) in old.mast whe add.code = .cod +
and l.name = .lnam
cha bal.wate to (bal.wate - .waterpd) in old.mast whe add.code = .cod +
and l.name = .lnam
cha bal.othe to (bal.othe - .otherpd) in old.mast whe add.code = .cod +
and l.name = .lnam
cha sec.dep to (sec.dep + .secpd) in old.mast whe add.code = .cod +
and l.name = .lnam
cha bal.othe to (bal.othe + .otherch) in old.mast whe add.code = .cod +
and l.name = .lnam
cha bal.wate to (bal.wate + .waterch) in old.mast whe add.code = .cod +
and l.name = .lnam
app oldtrans to transact whe add.code exi
label ex
del row fro oldtrans whe add.code exi
return